﻿@{
    ViewBag.Title = "货位库存查询";
    Layout = "~/Views/Shared/_JQBaseLayOut.cshtml";
}

@section JQscriptSection{
    <script src="../../Scripts/viewsScript/LocationInventory/LocationInventoryC.js" type="text/javascript"></script>
    <script src="../../Scripts/viewsScript/Common/MyDialog.js" type="text/javascript"></script>
    <script src="../../Scripts/jqueryeasyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
            function ExporterExcel() {
                var form = $('#query');
                var rows = $(".pagination-page-list option:selected").text();
                var page = $("input[size='2']").val();
                form.form('submit', {
                    url: '@Url.Content("~/LocationInventory/ExportExcel")' + '?page=' + page + '&rows=' + rows,
                success: function (data) {
                    eval('data=' + data);
                    if (data.success) {
                        InitGrid();
                    } else {
                        $.messager.alert('错误', data.msg, 'error');
                    }
                }
            });
        };
    </script>
}
<body style="background-color: ButtonFace; font-size: 17px" @*onload="InitGrid();"*@>

    <div id="p2" class="easyui-panel" title="查询条件" style="height: 110px; padding: 5px; background: #fafafa;">
        <form id="query" method="post">
            <table>
                <tr>
                    <td>商品批次号:
                    </td>
                    <td>
                        <input id="txtGOODSBATCHCODE" name="txtGOODSBATCHCODE" style="width: 154px" />
                    </td>
                    <td>货位编码:
                    </td>
                    <td>
                        <input id="txtLOCATIONCODE" name="txtLOCATIONCODE" style="width: 154px" />
                    </td>
                    <td>商品编码:
                    </td>
                    <td>
                        <input id="txtGOODSCODE" name="txtGOODSCODE" style="width: 154px" />
                    </td>
                    <td>商品名称:
                    </td>
                    <td>
                        <input id="txtGOODSNAME" name="txtGOODSNAME" style="width: 154px" />
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>下架商品编码:
                    </td>
                    <td>
                        <input id="txtINVGOODSCODE" name="txtINVGOODSCODE" style="width: 154px" />
                    </td>
                    <td>下架商品名称:
                    </td>
                    <td>
                        <input id="txtINVGOODSNAME" name="txtINVGOODSNAME" style="width: 154px" />
                    </td>
                    <td>
                        <a id="btnSerach" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="InitGrid()">查询</a>
                    </td>
                    <td>
                        <a id="btnExecl" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-excel'" onclick="ExporterExcel()">导出</a>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <div>
        <table id="tab_list">
        </table>
    </div>

</body>
